<!DOCTYPE html>
<html dir="ltr" mozdisallowselectionprint moznomarginboxes>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="google" content="notranslate">
  <title>工艺卡查看</title>

  <style>
    body {
      background-color: #808080;
      margin: 0;
      padding: 0;
    }
  </style>

  <link rel="stylesheet" href="${request.contextPath}/static/asset/pdf/components/pdf_viewer.css">

  <!-- for legacy browsers -->
  <script src="${request.contextPath}/static/asset/pdf/components/compatibility.js"></script>
  <script src="${request.contextPath}/static/asset/pdf/pdf.js"></script>
  <script src="${request.contextPath}/static/asset/pdf/components/pdf_viewer.js"></script>
</head>

<body tabindex="1">
  <div id="viewerContainer">
    <div id="viewer" class="pdfViewer"></div>
  </div>
  <script src="${request.contextPath}/static/asset/jquery/1.11.1/jquery.min.js"></script>
  <script src="${request.contextPath}/static/skin/default/js/pdfview.js"></script>
  <script>
  		$(document).ready(function(){
  			<#if hasError>
			alert("${message!}");<a href="javascript:window.close()">关闭此页面</a>
           <#else>
  			var options={url:'${pdffile!}.pdf',ctx:'${request.contextPath}'};
  			root.Pdf.view(options);
			</#if>
  		});
  </script>
</body>
</html>
